<?php
// uncomment second row before deploy!!
error_reporting (E_ALL ^ E_NOTICE);
//error_reporting (0);


include_once 'includes/loader.php';
include_once 'includes/constants.php';

///// if you want to see called SQLs, uncomment second row
DB::showSql(FALSE);
//DB::showSql(TRUE);
/////


$pageObject = Page::getInstance();
$pageObject->addToHead(Content::getHead());
$pageObject->addToLogo(Content::getLogo());
$pageObject->addToNav(Menu::getMenu());

//show all sidebar articles (true true true)
SidebarArticles::addSitebarArticles(TRUE, TRUE, TRUE);

$pageObject->addToContent(Content::getMainBody());
$pageObject->addToFooter(Content::getFooter());

//close db connection
DB::close();

echo $pageObject;
?>